<?php if (isset($submenus)): ?>
<ul id="submenu">
  <?php foreach ($submenus as $name=>$submenu): ?>
    <li> <?php echo link_to(__($name), $submenu) ?> </li>
  <?php endforeach ?>
</ul>
<?php endif ?>
